package com.xiaocg.builder;

public class PcDirector {

    private PcBuilder pcBuilder;

    public PcDirector(PcBuilder pcBuilder) {
        this.pcBuilder = pcBuilder;
    }

    public Computer getComputer(){
        pcBuilder.buildCpu();
        pcBuilder.buildMemory();
        return pcBuilder.creatComputer();
    }
}
